package com.chen.service;

import com.chen.dto.CreateOrderDto;
import com.chen.entity.Order;
import com.baomidou.mybatisplus.extension.service.IService;
import com.chen.vo.Result;

/**
 * <p>
 * 订单表 服务类
 * </p>
 *
 * @author cws
 * @since 2024-11-27
 */
public interface OrderService extends IService<Order> {

    Result createOrder(CreateOrderDto createOrderDto,String token);

    Result getOrderPayList(String orderSn);

    /**
     * 余额支付
     * @param orderSn
     * @return
     */
    Result balancePay(String orderSn,String token);

    /**
     * 订单超时处理
     * @param substring
     */
    void UpdateTimeOutOrder(String substring);

    /***
     * 查询全部订单
     * @param status
     * @return
     */
    Result OrderAllList(Integer status);

    /**
     * 更新订单状态
     * @param id
     * @param status
     * @return
     */
    Result updateStatus(Long id, Integer status);
}
